package com.br.ufrn.laut.braipetro.app;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.br.ufrn.laut.braipetro.app.malha.MalhaActivity;
import com.br.ufrn.laut.braipetro.app.regra.RegraActivity;

/**
 * Created by andreqbs on 18/04/2014.
 */
public class PrincipalActivity extends Activity {

    final Context context = this;

    Animation animAlpha = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.principal_activity);
        animAlpha = AnimationUtils.loadAnimation(this, R.anim.anim_alpha);
    }

    public void clickMalha(View view) {

        view.startAnimation(animAlpha);
        Intent intent = new Intent(context, MalhaActivity.class);
        startActivity(intent);
    }

    public void clickRegra(View view) {

        view.startAnimation(animAlpha);
        Intent intent = new Intent(context, RegraActivity.class);
        startActivity(intent);
    }
}
